speed=0;
if (offsety+ (sizeword+interval) *lrcindex>220) {
Speed= ((offsety+ (sizeword+interval) *lrcindex-220)/20);
else if (offsety+ (sizeword+interval) *lrcindex LOG.I ("Speed", "speed is too fast!!!");
Speed = 0;
}
if (speedspeed=0.2f;
// }
return speed;
}
/**
* According to the current song play Time, from the lyrics to get that sentence
* @param time to play the current
Use Python to download the lyrics and embed the implementation code in the song file,
Use python to scan local music and download lyricsThis is really a dry product. I got it for half a night last night. Well, I started writing it from, and it was just 12 minutes later, sorry ....To put it simply, Baidu provides an api for music search.
Http://box.zhangmen.baidu.com/x? Op = 12 count = 1 title = friend los
have_lrc:firstid = Int (theid)/100 Lrcurl = "http://box.zhangmen.baidu.com/bdlrc/" +str (FirstID) + "/" +theid+ ". LRC" print lrcurl LRC = URL Lib2.urlopen (Lrcurl). Read () if (Lrc.find (' html ') = =-1): Lrcfile = open (lrc_path+ "\ \" +the_title+ ". LRC", ' W ') Lrcfile.writelines (LRC) lrcfile.close () else:nolrc_file.write (the_title+ ' \ n ') th E_file.close () nolrc_file.close () print "end!"
Useful first step request is obtained in the end is XML format, so originally wanted t
This article mainly introduces how to use the Baidu Music Search api in python to download the lrc lyrics of a specified song and analyze the songs, if you need a friend, you can refer to this article. this is really a dry product. I got it for half a night last night. well, I started to write it after dinner at, and it's been ,,, newbie, sorry ....
To put it simply, Baidu provides an api for music search.
Chinese lyrics of a nice English song lemon tree
Lemon Tree ChineseI'm sitting here in a boring room. I'm sitting here-an empty room.It's just another rainy Sunday afternoon. This is just another rainy Sunday afternoon.I'm waisting my time, I got nothing to do. I have nothing to do except to spend time.I'm hanging around, I'm waiting for you. I look around and I'm waiting for you.But noth
Python Guangxi happy very source rent dsluntan.com q:3393756370 vx:17061863513 In recent years, rapid development, became the hottest language.So how to do NetEase cloud singer Top50 song lyrics crawl It
First to do NetEase cloud and do like the singer search as follows:
The important note here is that http://music.163.com/#/artist?id=1007170 is not really the connection we need, the real link
To the K-song people software users to detailed analysis to share the production of dynamic lyrics tutorial.
Tutorial Sharing:
1, most of the songs have dynamic lyrics, encountered no lyrics, you can choose a different version of the song to see if there are
1, select the songs to download, click the download icon after the music library will enter the download page;
2, click "Download Settings";
3, "At the same time download lyrics" Before the check, "confirm" can be. (Related content: QQ music How to prohibit downloading songs automatically download lyrics?)
Warm tips:
1, download the lyrics
This time this really is dry goods oh, last night made a half night,,,, from 8 points after eating dinner began to write, has been nearly 12 o'clock to finish,,, novice, can't afford to hurt Ah ....First of all, Baidu provides a music search API, you want Baidu request similar to
http://box.zhangmen.baidu.com/x?op=12count=1title= best loss friend $$ Eason Chan $ $
Address, Baidu will return you a section of XML, as shown below
This XML file does not appear to have any style i
Take the lyrics (errors may occur when the song address is Chinese)
Play. jspHttp://www.w3.org/TR/html4/loose.dtd>Dboperate DBO = new dboperate ();DBO. setlength (10 );String hql = "from music order by orders ";List mylist = DBO. findsqlhibernate (hql, 1 );Int n = mylist. Size ();For (INT I = 0; I {Music = (music) mylist. Get (I );%>}%>
Process. jspString Path = request. getcontextpath ();String basepath
Yiqiqian-the fate of the dragon song lyrics
There were only a few items that could have been found, and they were all recorded by hearing. There were some errors. It's not easy to do Creative Commons. After some comprehensive verification, the version provided by myself should be the least incorrect currently. : D
---------------------------------[Op] Heart Soul
Why?Why?There are two major problems:There a
Theme song-Lyrics
Talking and laughing are just three feet away
Mo Xiao's literati are peattered and shabby
Big Belly can tolerate (that a) loyal to the liver Ah ~
I also know the long journey of life since ancient times.
Only in the world
Not a poor, not a rich
You also know that happiness is a blessing if you are confused ~
But cannot help
When the sky rises
An iron tooth
Chew the layer and stack
You
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.